import { enumProperties } from './common'

// colorPicker
export const colorPickerProperties = [
    ...enumProperties.filter(e => ['enum'].indexOf(e.model) !== -1),
    {
        model: 'ui.showAlpha',
        widget: 'switch',
        label: '显示透明度(开启时rgb: rgb(0, 0, 0, 0.5))'
    },
    {
        model: 'ui.colorFormat',
        widget: 'select',
        label: '绑定值格式',
        enum: [
            { label: 'hsl', value: 'hsl' },
            { label: 'hsv', value: 'hsv' },
            { label: 'hex', value: 'hex' },
            { label: 'rgb', value: 'rgb' }
        ],
        ui: {
            placeholder: '请选择绑定值格式',
            style: {
                width: '100%'
            }
        }
    }
]
